﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Provenance.Infra.Migrations
{
    public partial class _20241219 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "ProductInfoId",
                table: "RowMaterial",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ProductInfoId",
                table: "PackagingMaterials",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "IsDeleted",
                table: "BreedHealth",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "ProductInfoId",
                table: "AuxiliaryMaterial",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ProductInfoId",
                table: "Additives",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductInfoId",
                table: "RowMaterial");

            migrationBuilder.DropColumn(
                name: "ProductInfoId",
                table: "PackagingMaterials");

            migrationBuilder.DropColumn(
                name: "IsDeleted",
                table: "BreedHealth");

            migrationBuilder.DropColumn(
                name: "ProductInfoId",
                table: "AuxiliaryMaterial");

            migrationBuilder.DropColumn(
                name: "ProductInfoId",
                table: "Additives");
        }
    }
}
